package com.ruoyi.bath.artiificer.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bath.artiificer.mapper.ArtificerMapper;
import com.ruoyi.bath.artiificer.domain.Artificer;
import com.ruoyi.bath.artiificer.service.IArtificerService;

/**
 * 技师信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-08-06
 */
@Service
public class ArtificerServiceImpl implements IArtificerService 
{
    @Autowired
    private ArtificerMapper artificerMapper;

    /**
     * 查询技师信息
     * 
     * @param artificerId 技师信息主键
     * @return 技师信息
     */
    @Override
    public Artificer selectArtificerByArtificerId(Integer artificerId)
    {
        return artificerMapper.selectArtificerByArtificerId(artificerId);
    }

    /**
     * 查询技师信息列表
     * 
     * @param artificer 技师信息
     * @return 技师信息
     */
    @Override
    public List<Artificer> selectArtificerList(Artificer artificer)
    {
        return artificerMapper.selectArtificerList(artificer);
    }

    /**
     * 新增技师信息
     * 
     * @param artificer 技师信息
     * @return 结果
     */
    @Override
    public int insertArtificer(Artificer artificer)
    {
        return artificerMapper.insertArtificer(artificer);
    }

    /**
     * 修改技师信息
     * 
     * @param artificer 技师信息
     * @return 结果
     */
    @Override
    public int updateArtificer(Artificer artificer)
    {
        return artificerMapper.updateArtificer(artificer);
    }

    /**
     * 批量删除技师信息
     * 
     * @param artificerIds 需要删除的技师信息主键
     * @return 结果
     */
    @Override
    public int deleteArtificerByArtificerIds(Integer[] artificerIds)
    {
        return artificerMapper.deleteArtificerByArtificerIds(artificerIds);
    }

    /**
     * 删除技师信息信息
     * 
     * @param artificerId 技师信息主键
     * @return 结果
     */
    @Override
    public int deleteArtificerByArtificerId(Integer artificerId)
    {
        return artificerMapper.deleteArtificerByArtificerId(artificerId);
    }



}
